package com.tyhy.program.cbc.mobileapi.exception;

/**
 *
 * 移动端接口公用异常类
 * 
 * @author zhouwc
 * @version 2020-01-18
 */
public class MobileApiException extends Exception {
	private static final long serialVersionUID = 1L;
	/**
     * 错误描述信息
     */
    private String message;
	/**
     * 扩展信息
     */
    private Object extendData;

    public MobileApiException() {
        super();
        this.message = "参数错误";
    }

    public MobileApiException(String message) {
        super();
        this.message = message;
    }
    public MobileApiException(String message, Object extendData) {
        super();
        this.message = message;
        this.extendData = extendData;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String errorMsg) {
        this.message = errorMsg;
    }

    public Object getExtendData() {
        return extendData;
    }

    public void setExtendData(Object extendData) {
        this.extendData = extendData;
    }
}